package com.yuanfengerp.basicInfoManage.logisticscompany.dao;


import com.yuanfengerp.basicInfoManage.logisticscompany.moudel.LogisticsCompanyInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface ILogisticsCompanyInfoMapper {
    int deleteLogisticsCompanyInfo(Integer logistics_companies_ID);

    int insertLogisticsCompanyInfo(LogisticsCompanyInfo logisticsCompanyInfo);

    List<LogisticsCompanyInfo> selectAllLogisticsCompanyInfo(@Param("pageSize") Integer pageSize, @Param("pageNum") Integer pageNum);

    List<LogisticsCompanyInfo> selectLogisticsCompanyInfo(@Param("logistics_companies_ID") Integer logistics_companies_ID,
                                                                         @Param("logistics_companies_name") String logistics_companies_name,
                                                                         @Param("logistics_companies_state") Integer logistics_companies_state);

    int updateLogisticsCompanyInfo(LogisticsCompanyInfo logisticsCompanyInfo);

    Integer getTotalCount();
    Integer getTotalCountByCondition(@Param("logistics_companies_ID") Integer logistics_companies_ID,
                                                                         @Param("logistics_companies_name") String logistics_companies_name,
                                                                         @Param("logistics_companies_state") Integer logistics_companies_state);
}
